enum PageOfC {
  HOME = "home",
  USER_HOME = "user_home",
  USER_INVITATION = "user_invitation",
  BRAND_HOME = "brand_home",
  BRAND_ENDORSEMENT = "brand_endorsement",
  GROUP_BUYING_1_HOME = "group_buying_1_home",
  CHECK_IN_1_HOME = "check_in_1_home",
  LOTTERY_1_HOME = "lottery_1_home",
  OTHER = "other",
}

export const isPageOfC = (val: any): val is PageOfC => {
  return [
    PageOfC.HOME,
    PageOfC.USER_HOME,
    PageOfC.USER_INVITATION,
    PageOfC.BRAND_HOME,
    PageOfC.BRAND_ENDORSEMENT,
    PageOfC.GROUP_BUYING_1_HOME,
    PageOfC.CHECK_IN_1_HOME,
    PageOfC.LOTTERY_1_HOME,
    PageOfC.OTHER,
  ].includes(val);
};

export default PageOfC;
